/*
** error.c for 42sh in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#include <stdio.h>
#include <stdarg.h>
#include "error.h"

void error_print(t_error *error, ...)
{
  va_list ap;

  va_start(ap, error);
  fprintf(stderr, "%s", SH_ERR_PREFIX);
  vfprintf(stderr, error, ap);
  fprintf(stderr, "\n");
  va_end(ap);
}
